<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<%@ include file="/static/commons/ecside.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
	<link rel="stylesheet" href="${ctx }/static/styles/edit/tableStyle.css"></link>
</head>
<body>
	<table class="table-utd" width="100%">
		<thead>
			<tr>
				<td align="center">序号</td>
				<td align="center">任务类型</td>
				<td align="center">个数</td>
				<td align="center">操作</td>
			</tr>
		<thead>
		<tbody>
		  <c:forEach items="${list }" var="d" varStatus="status">
			<tr>
				<td align="center">${status.count }</td>
				<td align="center">${d.name}</td>
				<td align="center">${d.count}</td>
				<td align="center"><c:if test="${d.count!=0}"><input type="button" onclick="showTestInfo('${d.name}')" value="查看"></input></c:if></td>
			</tr>
		  </c:forEach>
		</tbody>
	</table>
</body>
<script type="text/javascript">
	var pp = parent;
	function showTestInfo(type) {
		if(type=="我的检测任务"){   
			pp.addTab("我的检测任务","${ctx}/myTesting/init?menuId=03.01.01","03.01.01");
		}else if(type=="我的检查任务"){
			pp.addTab("我的检查任务","${ctx}/myInspect/init?menuId=03.02.01","03.02.01");
		}else if(type=="我的检修任务"){
			pp.addTab("我的检修任务","${ctx}/myRepair/init?menuId=03.02.02","03.02.02");
		}
	}
</script>
</html>